;(function(w,undefined){
$.fn.lazyload=function(){
    let temp1=window.innerHeight||document.documentElement.clientHeight
    let temp2=document.body.scrollTop||document.documentElement.scrollTop
    let totalHeight=temp1+temp2
    $(this).each((i,item)=>{
       if(item.offsetTop<totalHeight){
          item.src = $(item).attr('src-real')
        }
    })
}
$(window).scroll($.fn.lazyload)
})(window)